<?php
/*
    GUMUD is Extensible Web-based Multi-User Dungeon Software.

    Copyright (C) 2013  White Rabbit

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
$itx['component']['result'][1] = myquery("SELECT * FROM `".dbprfx."action` WHERE `action-component-name` = '".$itx['get']['com']."' AND `action-action` = '".$itx['get']['action']."' AND `".$itx['user']['user-group']."` = '1' LIMIT 1");
if (isset($itx['script'])) {

include(pathprivate."components/com-inner/actions/".$itx['script'].".php");

}
elseif ($itx['component']['result'][1] != "not") {
include(pathprivate."components/com-".$itx['get']['com']."/actions/".$itx['get']['action'].".php");
}
else { header("location: index.php"); die(); }
?>
